<?php

namespace App\Models\lak;

use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Database\Eloquent\Model;

class Reservation extends Model
{
    use HasFactory;
    protected $fillable = ['room_id','user_name','broker_id','phone','reserve_umber','reserve_address','reserve_time'];

    public static function Getfirst($result,$data){
        return self::query()->where($result)->where($data)->first();
    }

    public static function GetCreate($data){
        return self::query()->create($data);
    }


}
